package com.cd.music.utils;

import com.cd.music.dto.ResultBean;
import com.cd.music.service.AbstractAuthCodeService;

/**
 * @author yxl 余秀良
 * @version 1.0
 * @description: 短信发送工具类
 * @date 2018年02月27日  下午2:17
 * @address: 四川成都
 */
public final class SmsUtil {

    private static AbstractAuthCodeService authCodeService = new AbstractAuthCodeService();

    public static ResultBean login(String phone) {
        return authCodeService.login(phone);
    }

    public static ResultBean register(String phone) {
        return authCodeService.register(phone);
    }

    public static ResultBean updatePwd(String phone) {
        return authCodeService.updatePwd(phone);
    }

    private SmsUtil() {
        throw new UnsupportedOperationException("这是一个工具类不能实例化");
    }
}
